#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+5;
typedef long long ll;
ll a[maxn];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ll n;
    cin>>n;
    for(int i=0;i<n;i++)
    {
       cin>>a[i];
    }
    sort(a,a+n);
    ll i,j;
    for(i=0,j=0;j<n;j++)
    {
       if(a[i]<a[j])

       {
           i++;

       }
    }
    cout<<n-i<<endl;
    return 0;

}
